package cn.kgc.watch.mapper;

import cn.kgc.watch.entity.User;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.Date;

public interface UserMapper {
    User selectUser(@Param("user") User user);

    void updateLoginTime(@Param("userId") Integer userId,@Param("date") Date date);

    Integer selectUserName(@Param("userName") String userNameCheck);

    void insertUser(@Param("user") User user);

    User selectUserById(@Param("userId") Integer userId);

    Integer selectUserPassword(@Param("userId") Integer userId,@Param("password") String password);

    void updatePassword(User user);

    void updateTotalAmount( @Param("userId") Integer userId, @Param("totalAmount")BigDecimal totalAmount);

    void updateUserContent(@Param("user01") User user01);
}